﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using Amazon.DynamoDBv2.Model;
using AmazonDynamoDBStub.Extensions;

namespace AmazonDynamoDBStub.Models
{
    public class DynamoDBAttribute
    {
        [Key]
        [StringLength(255, MinimumLength = 3)]
        public string TableName { get; set; }

        [Key]
        public Guid RowId { get; set; }

        [Key]
        public string AttributeName { get; set; }

        [Required]
        public string AttributeValue { get; set; }

        [StringLength(2)]
        public string AttributeType { get; set; }

        public virtual DynamoDBTable DynamoDBTable { get; set; }
    }
}
